/**
 * 
 */
package com.dianba.supply.demo.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.dianba.supply.demo.mapper.CommonAddressMapper;
import com.dianba.supply.demo.service.TestAddressService;

/**
 *
 *
 * @author zhoucong
 * @date 2016年4月27日 上午9:12:48
 */
@Service
public class TestAddressServiceImpl implements TestAddressService {
	@Autowired
	private CommonAddressMapper addressMapper;

	@Override
	public Long getMaxIdFromUserId(Integer id) {
		return this.addressMapper.getMaxIdFromUserId(id);
	}

	@Override
	public void updateAddressSetDefaultByUserId(Integer userId) {
		this.addressMapper.updateAddressSetDefaultByUserId(userId);
	}

}
